<template>
    <div>
      <Navbar @setLayout="setLayout"></Navbar>
      <settings ref="settingRef" />
        
      我是测试板块
      
       <router-link to="/test/test1">测试1</router-link>
       <router-link to="/test/test2">测试2</router-link>
       <router-view></router-view>
     
     
   </div>
  </template>
  
  <script setup>
//   引入导航栏
  import Navbar from '@/layout/components/Navbar.vue';
  import Settings  from '@/layout/components/Settings/index.vue';
  const settingRef = ref(null)
  
  function setLayout() {
  settingRef.value.openSetting()
}
  </script>
  
  <style lang="scss" scoped>
  
  </style>